import React, { Component } from 'react'

export default class App extends Component {
  render() {
    return (
      <div>
          <input/>
          <button onClick={()=>{console.log("内容处理过多不推荐")}}>click1</button>
          <button onClick={this.handleClick}>click2</button>
          <button onClick={this.handleClick2}>click3</button>
          <button onClick={()=>{this.handleClick2()}}>click3</button>
      </div>
    )
  }

  handleClick(){
      console.log("handleClick")
  }
  handleClick2=()=>{console.log("handleClick2")}
}
